package com.example.demo.controller;

import com.example.demo.pojo.Result;
import com.example.demo.pojo.vo.BusinessDataVO;
import com.example.demo.service.WorkSpaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/polycystic/workspace")
public class WorkSpaceController {
    @Autowired
    private WorkSpaceService workSpaceService;

    @GetMapping("/businessData")
    public Result<BusinessDataVO> businessData(){
        BusinessDataVO businessDataVO=workSpaceService.businessData();
        return Result.success(businessDataVO);
    }
}
